using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class PlayerData : CharacterData
{
    private Player player;

    protected override void Start()
    {
        base.Start();
        player = GetComponent<Player>();
    }

    public override void TakeDamage(int damage, bool _isCrit = false)
    {
        base.TakeDamage(damage,_isCrit);
    }

    protected override void Die()
    {
        base.Die();
        myDrop?.GenerateDrop();
        player.Die();
        
    }

}
